import java.util.LinkedList;

public class LinkedList_Demo {
    public static void main(String[] args) {
     String[] str = {"12","234","678334","12"};
     LinkedList<String> list = new LinkedList<String>();
     for(int i=0;i<str.length;i++){
         list.add(str[i]);
     }
        System.out.println(list);
        for(int i=0;i<list.size();i++){
            for (int j=0;j<list.size();j++){
                if(list.get(i).equals(list.get(j))){
                    list.remove(j);
                }
            }
        }
        System.out.println(list);


    }
}
